package com.xuecheng.api.content;

import com.xuecheng.api.content.model.dto.CourseTeacherDTO;
import com.xuecheng.api.content.model.vo.CourseTeacherVO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiOperation;

import java.util.List;

/**
 * @author 黄子弟
 * @Date 2021/12/15
 */

@Api(value = "课程教师信息管理" ,tags = "课程教师信息管理Api接口")
public interface CourseTeacherControllerApi {
    @ApiOperation("查询课程绑定的教师")
    @ApiImplicitParam(name = "courseBaseId",value = "课程id",required = true,dataType = "Long",paramType = "path")
    List<CourseTeacherDTO> queryCourseTeacherList(Long courseBaseId);

    @ApiOperation("增加或修改教师信息")
    @ApiImplicitParam(name = "courseTeacherVO",value = "教师信息封装类",required = true,dataType = "CourseTeacherVO",paramType = "body")
    CourseTeacherDTO createOrModifyCourseTeacher(CourseTeacherVO courseTeacherVO);

    @ApiOperation("删除教师信息")
    @ApiImplicitParam(name = "courseTeacherId",value = "教师标识id",required = true,dataType = "Long",paramType = "path")
    void deleteCourseTeacher(Long courseId ,Long courseTeacherId);
}
